home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temafire / Red Cats (green flavor).jar / global / textbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-11-04  |  2.6 KB  |  100 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-2001 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Joe Hewitt (hewitt@netscape.com)
  22.  */
  23.  
  24. /* ===== textbox.css ==================================================
  25.   == Styles used by the XUL textbox element.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29. @namespace html url("http://www.w3.org/1999/xhtml");
  30.  
  31. /* ::::: textbox ::::: */
  32.  
  33. textbox {
  34.   cursor: text;
  35.   margin: 2px 3px 2px 0;
  36.   border: 1px solid;
  37.   -moz-border-top-colors: #A6B7A9;
  38.   -moz-border-right-colors: #DBE8DD; 
  39.   -moz-border-bottom-colors: #DBE8DD;
  40.   -moz-border-left-colors: #A6B7A9;
  41.   -moz-border-radius: 2px;
  42.   padding: 1px 2px 1px 2px;
  43.   background-color: #D4E0D6;
  44.   color: black;  
  45. }
  46.  
  47. textbox[focused="true"] {
  48.   -moz-border-top-colors: #6E85A8;
  49.   -moz-border-right-colors: #A6B6CE; 
  50.   -moz-border-bottom-colors: #A6B6CE;
  51.   -moz-border-left-colors: #6E85A8;
  52.   -moz-border-radius: 1px;
  53.     background-color: #B6C8B9;
  54. }
  55.     
  56. html|*.textbox-input, 
  57. html|*.textbox-textarea {
  58.   margin: 0px !important;
  59.   border: none !important;
  60.   padding: 0px !important;
  61.   background-color: inherit;
  62.   color: inherit;
  63.   font: inherit;
  64. }
  65.  
  66. .textbox-input-box menupopup {
  67.   cursor: default;
  68. }
  69.  
  70. /* ..... readonly state ..... */
  71.  
  72. textbox[readonly="true"] {
  73.   background-color: #D4E0D6;
  74.   color: #848C85;
  75. }
  76.  
  77. /* ..... disabled state ..... */
  78.  
  79. textbox[disabled="true"] {
  80.   cursor: default;
  81.   background-color: #D4E0D6;
  82.   color: #A6B7A9;
  83.  
  84. /* ::::: plain textbox ::::: */
  85.  
  86. textbox.plain {
  87.   -moz-appearance: none !important;
  88.   padding: 0px !important;
  89.   margin: 0px !important;
  90.   border: none !important;
  91. }
  92.  
  93. /* ::::: textboxes inside toolbarpaletteitems ::::: */
  94.  
  95. toolbarpaletteitem > toolbaritem > textbox > .textbox-input-box > html|*.textbox-input {
  96.   visibility: hidden;
  97. }
  98.  
  99.